from appium import webdriver
from appium.options.android import UiAutomator2Options

from dnf.解除封印 import jcfy

capabilities = dict(
    platformName='Android',
    automationName='uiautomator2',
    deviceName='AF8YVB1C14003760',
    language='zh',
)

appium_server_url = 'http://localhost:4723'


driver = webdriver.Remote(appium_server_url, options=UiAutomator2Options().load_capabilities(capabilities))

jcfy(driver)

driver.quit()